angular.module('moti.services.inspectorsService', ['restangular'])
    .factory('InspectorsInterface', ['Restangular', 'Auth', function(Restangular, Auth){
        var inspectors = Restangular.all('admin');
        return {
            //获取检票员列表
            getInspectorsList : function(){
                return inspectors.customGET(INTERFACE_API.INSPECTORS, {}, Auth);
            },
            //添加检票员
            postInspector : function(request_body){
                return inspectors.customPOST(request_body, INTERFACE_API.INSPECTORS, {}, Auth);
            },
            //删除检票员
            deleteInspector : function(inspector_id){
                return inspectors.customDELETE(INTERFACE_API.INSPECTORS + "/" + inspector_id, {}, Auth);
            }
        }
    }]);